﻿function ClientSideCallRssChannel(groupnewsid, belongSite, ChanelTitle) {
    url = Portal.CDSP.FGroupNewsHomeWP.ServerSideCallRssChannel(groupnewsid, belongSite, ChanelTitle).value;
    if (url.indexOf("ERROR") != -1) {
        alert(url);
        return;
    }
    //alert(url);if() 
    // check error or not
    window.open(url, "_self");
}

function ClientSideCallRss(groupnewsid, belongSite, ChanelTitle) {
    url = Portal.CDSP.RSimpleSyndication.ServerSideCallRssChannel(groupnewsid, belongSite, ChanelTitle).value;
    //alert(url);
    if (url.indexOf("ERROR") != -1) {
        alert(url);
        return;
    }
    // check error or not
    window.open(url, "_self");
}
